package com.crawler.harbour.common;

import java.util.List;

import com.crawler.harbour.dto.CostParametersDto;
import com.crawler.harbour.model.GGHGbiaozhun;

import okhttp3.OkHttpClient;

public abstract class CostSpider {
	
	protected OkHttpClient client;
	
	public CostSpider(OkHttpClient client) {
		this.client=client;
	}
	
	public CostSpider() {
		this(new OkHttpClient());
	}
	
	public abstract List<GGHGbiaozhun> startCrawl(List<CostParametersDto> infos);
	
	/**
	 * 获取堆存天数
	 * @param inDate 进场日期
	 * @param outDate 出场日期
	 * @return 
	 */
	public abstract String computeStorageDays(String inDate,String outDate);
}
